// 专门操作token,代码分层,方便修改
const key = 'geek-itheima'

// 1.设置
export const setToken = (token) => {
  sessionStorage.setItem(key, token)
}

// 2.获取
export const getToken = () => {
  return sessionStorage.getItem(key)
}

// 3.清除
export const removeToken = () => {
  sessionStorage.removeItem(key)
}
